package com.xudu.controller;

import com.xudu.entity.User;
import com.xudu.utils.Resoult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


/**
 * ClassName: IUserController
 * Description:
 *
 * @Author xudu
 * @Create 2024/4/9
 */
public interface IUserController {
    public Resoult login(String username, String password);

    public Resoult test();


    void register(@RequestBody User user);


    Resoult uploadPhoto(String username, String password, MultipartFile photo);

    public Resoult getInfo(@RequestHeader String token);

    public void getphoto(String username, HttpServletResponse response) throws IOException;
}
